<IfModule mod_rewrite.c> issue in debian lenny.

<IfModule mod_rewrite.c> issue in debian lenny.

am 04.03.2010 06:42:00 von joydeep

Hello list,

Here in debian lenny the rewrite rules are working well. I have checked
by this .htaccess and successful

````````````````````
DirectoryIndex index.php
RewriteEngine On

#RewriteRule ^typo3$ - [L]
#RewriteRule ^typo3/.*$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php
```````````````


Now I like to place the rewrite stuff in apache configuration so that I
don't need to place .htaccess for all the sites. and here is the config
I have placed in apache

```````````````````````

Options Indexes FollowSymLinks MultiViews
# .htaccess slows down apache; only use it when required #
AllowOverride All
Order allow,deny
allow from all

### Begin: Rewrite stuff for typo3 ###


# Enable URL rewriting
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule .* index.php [L]



````````````````````````````````

restart apache and remove the .htaccess from webroot directory of the
site. the rewite stuff is not working now !!! Is it a problem with
which is not recognized here in lenny ? Does
anyone have any idea or faced the same problem.

BTW: The above config running fine with opensuse 11.2

Thanks

--
জয়দীপ বক্সী


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: <IfModule mod_rewrite.c> issue in debian lenny.

am 04.03.2010 07:10:44 von Nilesh Govindrajan

--001636283722bb41c60480f3762b
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Thu, Mar 4, 2010 at 11:12 AM, J. Bakshi wrote:

> Hello list,
>
> Here in debian lenny the rewrite rules are working well. I have checked
> by this .htaccess and successful
>
> ````````````````````
> DirectoryIndex index.php
> RewriteEngine On
>
> #RewriteRule ^typo3$ - [L]
> #RewriteRule ^typo3/.*$ - [L]
>
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-l
> RewriteRule .* index.php
> ```````````````
>
>
> Now I like to place the rewrite stuff in apache configuration so that I
> don't need to place .htaccess for all the sites. and here is the config
> I have placed in apache
>
> ```````````````````````
>
> Options Indexes FollowSymLinks MultiViews
> # .htaccess slows down apache; only use it when required #
> AllowOverride All
> Order allow,deny
> allow from all
>
> ### Begin: Rewrite stuff for typo3 ###
>
>
> # Enable URL rewriting
> RewriteEngine On
> RewriteBase /
>
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-l
>
> RewriteRule .* index.php [L]
>

>

>
> ````````````````````````````````
>
> restart apache and remove the .htaccess from webroot directory of the
> site. the rewite stuff is not working now !!! Is it a problem with
> which is not recognized here in lenny ? Does
> anyone have any idea or faced the same problem.
>
> BTW: The above config running fine with opensuse 11.2
>
> Thanks
>
> --
> জয়দীà¦=AA বকà§=8D=
সী
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
I think you should be using rewrite_module.c instead of mod_rewrite.c

--=20
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com

--001636283722bb41c60480f3762b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Thu, Mar 4, 2010 at 11:12 AM, J. Bakshi dir=3D"ltr"><joydeep@infoser=
vices.in
> wrote:
=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); p=
adding-left: 1ex;">

Hello list,



Here in debian lenny the rewrite rules are working well. I have checked

by this .htaccess and successful



````````````````````

DirectoryIndex index.php

RewriteEngine On



#RewriteRule ^typo3$ - [L]

#RewriteRule ^typo3/.*$ - [L]



RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule .* index.php

```````````````





Now I like to place the rewrite stuff in apache configuration so that I

don't need to place .htaccess for all the sites. and here is the config=


I have placed in apache



```````````````````````

<Directory /var/www/>

Options Indexes FollowSymLinks MultiViews

# .htaccess slows down apache; only use it when required #

AllowOverride All

Order allow,deny

allow from all



### Begin: Rewrite stuff for typo3 ###

<IfModule mod_rewrite.c>



# Enable URL rewriting

RewriteEngine On

RewriteBase /



RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-l



RewriteRule .* index.php [L]

</IfModule>

</Directory>



````````````````````````````````



restart apache and remove the .htaccess from webroot directory of the

site. the rewite stuff is not working now !!! Is it a problem with

<IfModule mod_rewrite.c> which is not recognized here in lenny ? Does=


anyone have any idea or faced the same problem.



BTW: The above config running fine with opensuse 11.2



Thanks



--

জয়দীà¦=AA বকà§=8D=
সী





------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g">users-unsubscribe@httpd.apache.org

  "   from the digest: scribe@httpd.apache.org">users-digest-unsubscribe@httpd.apac he.org

For additional commands, e-mail: org">users-help@httpd.apache.org




I think you should be using rewrite_module.c instead=
of mod_rewrite.c

--
Nilesh Govindarajan
Site &=
amp; Server Administrator
www.itech7.c=
om






--001636283722bb41c60480f3762b--

Re: <IfModule mod_rewrite.c> issue in debian lenny.

am 04.03.2010 08:15:51 von joydeep

On 03/04/2010 11:40 AM, Nilesh Govindarajan wrote:
> On Thu, Mar 4, 2010 at 11:12 AM, J. Bakshi > > wrote:
>
> Hello list,
>
> Here in debian lenny the rewrite rules are working well. I have
> checked
> by this .htaccess and successful
>
> ````````````````````
> DirectoryIndex index.php
> RewriteEngine On
>
> #RewriteRule ^typo3$ - [L]
> #RewriteRule ^typo3/.*$ - [L]
>
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-l
> RewriteRule .* index.php
> ```````````````
>
>
> Now I like to place the rewrite stuff in apache configuration so
> that I
> don't need to place .htaccess for all the sites. and here is the
> config
> I have placed in apache
>
> ```````````````````````
>
> Options Indexes FollowSymLinks MultiViews
> # .htaccess slows down apache; only use it when required #
> AllowOverride All
> Order allow,deny
> allow from all
>
> ### Begin: Rewrite stuff for typo3 ###
>
>
> # Enable URL rewriting
> RewriteEngine On
> RewriteBase /
>
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-l
>
> RewriteRule .* index.php [L]
>

>

>
> ````````````````````````````````
>
> restart apache and remove the .htaccess from webroot directory of the
> site. the rewite stuff is not working now !!! Is it a problem with
> which is not recognized here in lenny ? Does
> anyone have any idea or faced the same problem.
>
> BTW: The above config running fine with opensuse 11.2
>
> Thanks
>
> --
> জয়দীপ বক্সী
>
>
>
>
> I think you should be using rewrite_module.c instead of mod_rewrite.c
>
>

Checked by but no luck. How can I check
the correct module in my server ?

Thanks


--
জয়দীপ বক্সী


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: <IfModule mod_rewrite.c> issue in debian lenny.

am 04.03.2010 10:10:30 von Igor Cicimov

--000e0cd487ce720cc60480f5f808
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

See the name of the module in the LoadModule line in the config file

On Mar 4, 2010 6:16 PM, "J. Bakshi" wrote:

On 03/04/2010 11:40 AM, Nilesh Govindarajan wrote: > On Thu, Mar 4, 2010 at
11:12 AM, J. Bakshi
> > wrote: > > Hello list, > > Here in
debian lenny the rewr...

> I think you should be using rewrite_module.c instead of mod_rewrite.c > >
Checked by but no luck. How can I check
the correct module in my server ?

Thanks -- জয়দীà¦=AA বক=
্সà§=80
------------------------------------------------------------ --------- Th...

--000e0cd487ce720cc60480f5f808
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

See the name of the module in the LoadModule line in the config file


On Mar 4, 2010 6:16 PM, "J. Bakshi" =
<&=
gt; wrote:

On 03/04/2010 11:40 AM, Nilesh=
Govindarajan wrote:
> On Thu, Mar 4, 2010 at 11:12 AM, J. Bakshi <joy...

nt color=3D"#500050">> <mailto: ..in">joydeep@infoservices.in>> wrote:
>
> Hello list,
>
> Here in debian lenny the rewr...

50">> I think you should be using rewrite_module.c instead of mod_rewrit=
e.c
>
>

Checked by  <IfModule rewrite_module.c> but no luck. =
 How can I check

the correct module in my server ?


Thanks


--=20
জয়দীà¦=AA বকà§=8D=
সী


------------------------------------------------------------ ---------
Th...



--000e0cd487ce720cc60480f5f808--

Re: <IfModule mod_rewrite.c> issue in debian lenny.

am 04.03.2010 12:48:42 von Nilesh Govindrajan

--001485eba7c265ff450480f82f7f
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Thu, Mar 4, 2010 at 2:40 PM, Igor Cicimov wrote:

> See the name of the module in the LoadModule line in the config file
>
> On Mar 4, 2010 6:16 PM, "J. Bakshi" wrote:
>
> On 03/04/2010 11:40 AM, Nilesh Govindarajan wrote: > On Thu, Mar 4, 2010 =
at
> 11:12 AM, J. Bakshi >
> > > wrote: > > Hello list, > > Here in
> debian lenny the rewr...
>
> > I think you should be using rewrite_module.c instead of mod_rewrite.c >=
>
>
> Checked by but no luck. How can I check
> the correct module in my server ?
>
> Thanks -- জয়দীà¦=AA বà=A6=
•à§à¦¸à§€
> ------------------------------------------------------------ --------- Th.=
...
>
>
Or do apachectl -M

--=20
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com

--001485eba7c265ff450480f82f7f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Thu, Mar 4, 2010 at 2:40 PM, Igor Cicimov an dir=3D"ltr"><icicimov@gmail.com=
> wrote:
: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-lef=
t: 1ex;">

See the name of the module in the LoadModule line in the config file


On Mar 4, 2010 6:16 PM, "J. Bakshi&qu=
ot; <joydee=
p@infoservices.in
> wrote:

On 03/04=
/2010 11:40 AM, Nilesh Govindarajan wrote:
> On Thu, Mar 4, 2010 at 11:12 AM, J. Bakshi <joy...

nt color=3D"#500050">> <mailto: ..in" target=3D"_blank">joydeep@infoservices.in>> wrote:
>
> Hello list,
>
> Here in debian lenny the rewr...

ont color=3D"#500050">> I think you should be using rewrite_module.c ins=
tead of mod_rewrite.c
>
>

Checked by  <IfModule rewrite_module.c> but no luck. =
 How can I check

the correct module in my server ?


Thanks


--=20
জয়দীà¦=AA বকà§=8D=
সী


------------------------------------------------------------ ---------
Th...



Or do apachectl -M

--
Niles=
h Govindarajan
Site & Server Administrator
itech7.com">www.itech7.com



--001485eba7c265ff450480f82f7f--

Re: <IfModule mod_rewrite.c> issue in debian lenny.

am 04.03.2010 13:23:06 von Dan Poirier

Or just don't use in your own configuration. The only real
reason to use it is in example configurations for other people, where
you don't know if a given module has been loaded.

If you're configuring your own server, presumably you intend for that
module to be loaded. Better to have the server fail to start if you've
left out the LoadModule than appear to be working but completely
ignoring all the configuration inside .

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: <IfModule mod_rewrite.c> issue in debian lenny.

am 05.03.2010 06:03:09 von joydeep

On 03/04/2010 05:18 PM, Nilesh Govindarajan wrote:
> On Thu, Mar 4, 2010 at 2:40 PM, Igor Cicimov > > wrote:
>
> See the name of the module in the LoadModule line in the config file
>
>> On Mar 4, 2010 6:16 PM, "J. Bakshi" >> > wrote:
>>
>> On 03/04/2010 11:40 AM, Nilesh Govindarajan wrote: > On Thu, Mar
>> 4, 2010 at 11:12 AM, J. Bakshi >>
>> > >> >> wrote: > > Hello list, > >
>> Here in debian lenny the rewr...
>>
>> > I think you should be using rewrite_module.c instead of
>> mod_rewrite.c > >
>>
>> Checked by but no luck. How can I check
>> the correct module in my server ?
>>
>>
>
> Or do apachectl -M
>


Great..great. Now it is providing a clear view.

# apache2ctl - M shows here

[.......]
negotiation_module (shared)
php5_module (shared)
rewrite_module (shared)
setenvif_module (shared)
[.....]

So, it is rewrite_module. Unfortunately here the rewrite stuff still
not working with and with out part. Please tell me if some
one needs any more info.

Thanks

--
জয়দীপ বক্সী


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: <IfModule mod_rewrite.c> issue in debian lenny.

am 05.03.2010 06:15:21 von joydeep

On 03/04/2010 05:53 PM, Dan Poirier wrote:
> Or just don't use in your own configuration. The only real
> reason to use it is in example configurations for other people, where
> you don't know if a given module has been loaded.
>
> If you're configuring your own server, presumably you intend for that
> module to be loaded. Better to have the server fail to start if you've
> left out the LoadModule than appear to be working but completely
> ignoring all the configuration inside .
>
>

Thanks Dan,

But I have faced problem in debian where it does not sense the
configuration if it is not under . Otherwise I would be happy
to configure without .

cheers.

--
জয়দীপ বক্সী


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: <IfModule mod_rewrite.c> issue in debian lenny.

am 09.03.2010 13:03:56 von Matus UHLAR - fantomas

> On 03/04/2010 05:53 PM, Dan Poirier wrote:
> > Or just don't use in your own configuration. The only real
> > reason to use it is in example configurations for other people, where
> > you don't know if a given module has been loaded.
> >
> > If you're configuring your own server, presumably you intend for that
> > module to be loaded. Better to have the server fail to start if you've
> > left out the LoadModule than appear to be working but completely
> > ignoring all the configuration inside .

On 05.03.10 10:45, J. Bakshi wrote:
> But I have faced problem in debian where it does not sense the
> configuration if it is not under . Otherwise I would be happy
> to configure without .

What?

If the directive is not in , it's always used. The
causes it be used only if the specified module is loaded.

It means, that if you use a directive without and the module is
not loaded, apache reports an error in config file.

The fscking complicated syntax used in some SW distributions are
Pain-In-The-Ass. Unless you want only some small changes, it's always better
to create own apache's config. Yes, it's not that easy to maintain from the
distributions' point of view (automatically), but it's MUCH easier to
understand and maintain manually.

playing with is especially hard with things like DirectoryIndex.
iirc RedHat tried to add directives like AddDirectoryIndex and
ClearDirectoryIndex but without big success here.

--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Silvester Stallone: Father of the RISC concept.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org